﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListByArticle.aspx.cs" Inherits="eCommerce.web.Ajax.Comment.ListByArticle" %>

<div class="feedback-wrap">
    <h3><%= TotalRecords %> Bình luận</h3>
    <br>
    <div class="dvision">
        <asp:Repeater ID="rptComment" runat="server">
            <ItemTemplate>
                <div class="feedback">
                    <img src="<%# Eval("Avatar") %>" alt="">
                    <div>
                        <h4><a href="#"><%# Eval("UserName") %></a></h4>
                        <span><a href="#"><%# eCommerce.core.Helpers.Utils.FormatIn_HHMM_DDMMYYYY(eCommerce.core.Helpers.Utils.ToDateTime(Eval("CreatedOn")))%></a></span>
                        <p><%# Eval("Body") %></p>
                    </div>
                </div>
            </ItemTemplate>
        </asp:Repeater>
    </div>
</div>
<!-- /list comment -->
<ul id="pagination">
    <asp:Literal ID="ltPager" runat="server"/>    
</ul>

<script type="text/javascript">
    $(document).ready(function () {
        listComment($('#hdArticleId').val(), $('#hdTypeId').val(), eCommerce.PageIndex);
        $('#btnSend').click(function () {
            createComment($('#hdArticleId').val(), $('#hdTypeId').val());
        });
    });
</script>
